package designpattern.strategy;

public enum MemberCalEnum {
	ADVANCE("advance") {
		public double calPrice(double price) {
			return price * 0.8;
		}
	},
	MID("mid") {
		public double calPrice(double price) {
			return price * 0.9;
		}
	};
	;

	String type = "";

	private MemberCalEnum(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public abstract double calPrice(double price);
}
